/**
 * Project Name:template-web
 * File Name   :Message.java
 * Package Name:org.cn.template.component.domain
 * Date:2015年9月27日下午3:26:54
 * Copyright (c) 2015, http://my.oschina.net/httpssl All Rights Reserved.
 *
*/

package org.cn.template.component.domain;

import java.io.Serializable;
import java.util.Date;

import org.cn.template.component.enums.MessageStatus;

/**
 * ClassName:Message <br/>
 * Function :TODO ADD FUNCTION. <br/>
 * Reason	:TODO ADD REASON. <br/>
 * Date     :2015年9月27日 下午3:26:54 <br/>
 * @author  :http://my.oschina.net/httpssl
 * @email   :491835898@QQ.COM
 * @since   :JDK 1.7
 * @see 	 
 */
@SuppressWarnings("serial")
public class Message implements Serializable
{
	private MessageStatus state;
	private Object message;
	private Date time;

	public Message(MessageStatus state,Object msg){
		this.state = state;
		this.message = msg;
	}
	
	public MessageStatus getState()
	{
		return state;
	}

	public void setState(MessageStatus state)
	{
		this.state = state;
	}

	public Object getMessage()
	{
		return message;
	}

	public void setMessage(Object message)
	{
		this.message = message;
	}
	public Date getTime()
	{
		return time;
	}
	public void setTime(Date time)
	{
		this.time = time;
	}

}
